package org.ktjy.springbootredis.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("sys_user")
public class User {
    @TableId
    private Long  usrId;
    private String usrName;
    private String usrPassword;
    private Long usrRoleId;
    private Integer usrFlag;
    private Integer version;
    private String deleted;
    private Date createTime;
    private Date updateTime;

    public User() {
    }

    public User(Long usrId, String usrName, String usrPassword, Long usrRoleId, Integer usrFlag, Integer version, String deleted, Date createTime, Date updateTime) {
        this.usrId = usrId;
        this.usrName = usrName;
        this.usrPassword = usrPassword;
        this.usrRoleId = usrRoleId;
        this.usrFlag = usrFlag;
        this.version = version;
        this.deleted = deleted;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return usrId
     */
    public Long getUsrId() {
        return usrId;
    }

    /**
     * 设置
     * @param usrId
     */
    public void setUsrId(Long usrId) {
        this.usrId = usrId;
    }

    /**
     * 获取
     * @return usrName
     */
    public String getUsrName() {
        return usrName;
    }

    /**
     * 设置
     * @param usrName
     */
    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    /**
     * 获取
     * @return usrPassword
     */
    public String getUsrPassword() {
        return usrPassword;
    }

    /**
     * 设置
     * @param usrPassword
     */
    public void setUsrPassword(String usrPassword) {
        this.usrPassword = usrPassword;
    }

    /**
     * 获取
     * @return usrRoleId
     */
    public Long getUsrRoleId() {
        return usrRoleId;
    }

    /**
     * 设置
     * @param usrRoleId
     */
    public void setUsrRoleId(Long usrRoleId) {
        this.usrRoleId = usrRoleId;
    }

    /**
     * 获取
     * @return usrFlag
     */
    public Integer getUsrFlag() {
        return usrFlag;
    }

    /**
     * 设置
     * @param usrFlag
     */
    public void setUsrFlag(Integer usrFlag) {
        this.usrFlag = usrFlag;
    }

    /**
     * 获取
     * @return version
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置
     * @param version
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * 获取
     * @return deleted
     */
    public String getDeleted() {
        return deleted;
    }

    /**
     * 设置
     * @param deleted
     */
    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "User{usrId = " + usrId + ", usrName = " + usrName + ", usrPassword = " + usrPassword + ", usrRoleId = " + usrRoleId + ", usrFlag = " + usrFlag + ", version = " + version + ", deleted = " + deleted + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
